using System;
/// <summary>
/// Xlsx表Db库帮助类【主文件】
/// </summary>
public static partial class HFDbHelper
{
    /// <summary>
    /// xlsx表数据库
    /// </summary>
    static XlsxDbLibrary mXlsxDbLibrary = null;
    /// <summary>
    /// 加载数据库
    /// </summary>
    /// <param name="_onComplete">完成回调</param>
    /// <param name="_onProgress">进度[string:信息,float:进度0-1]</param>
    public static void LoadDbLibrary(Action _onComplete, Action<string, float> _onProgress)
    {
        //这里对数据库的表解析到内存
        HFAssetBundlePathAttribute abName = new HFAssetBundlePathAttribute(enHFLanguageRootFolder.ASSETS_GAME_GAMEHFRESOURCE,"DbLibrary/XlsxDbLibrary.asset",true);
        HFABMgr.Instance.LoadInMemory(abName, (rsp,args) =>
        {
            mXlsxDbLibrary = rsp.GetAsset<XlsxDbLibrary>();
            OnReadMaster(_onComplete, _onProgress);
        }, null, null, null,null);
    }
}